package cn.edu.seu.ssny.dao;

import cn.edu.seu.ssny.dao.support.IBaseDao;
import cn.edu.seu.ssny.entity.Device;
import cn.edu.seu.ssny.entity.MachineGroup;
import cn.edu.seu.ssny.entity.MachineGroupConfig;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IMachineGroupConfigDao extends IBaseDao<MachineGroupConfig, Integer> {
    List<MachineGroupConfig> findMachineGroupConfigsByMachineGroup(MachineGroup machineGroup);

    List<MachineGroupConfig> findMachineGroupConfigsByMachineGroupAndType(MachineGroup machineGroup, Integer type);

    MachineGroupConfig findMachineGroupConfigByMachineGroupAndDevice(MachineGroup machineGroup, Device device);
}
